﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace XiaonuanPMS.Entity
{
    [Serializable]
    public class TestingResult
    {


        public int Orders { get; set; } //化验顺序


        public decimal Price { get; set; } //价格


        public string PPayId { get; set; } //账单关联id

        //删除标识
        public int Delete { get; set; }


        public int ID { get; set; }

        public int OrgId { get; set; }

        public int ReportId { get; set; }

        public int TestingId { get; set; }

        public string ResultValue { get; set; }

        public DateTime TestingDate { get; set; }

        public int TestedBy { get; set; }

        public string TestedByText { get; set; }

        public string ResultRange { get; set; }

        public bool IsPass { get; set; }

        public string ItemName { get; set; }

        public string ItemDesc { get; set; }
        /// <summary>
        /// 上次检查结果
        /// </summary>

        public string LastValue { get; set; }
        /// <summary>
        /// 上上次检查结果值
        /// </summary>

        public string BeforeLastValue { get; set; }

        public string EnglishName { get; set; }

        public string Unit { get; set; }

        public double? Max { get; set; }

        public double? Min { get; set; }

        public string ResultSymbol { get; set; }

        public string ItemCode { get; set; }

        public string Remark { get; set; }

    }


    public class RPResult
    {
        public RpMachineInfo machineInfo { get; set; }
        public List<RpResultData> resultDatas { get; set; }
        public RPLaboratoryRecord laboratoryRecord { get; set; }
        public List<RPDataDic> catBreed { get; set; }
        public List<RPDataDic> dogBreed { get; set; }
        public List<RPDataDic> otherBreed { get; set; }
    }



    public class RpMachineInfo
    {
        public string num { get; set; }//": 11,
        public int id { get; set; }//": "ae11c600-852d-4a6f-92c2-ad84cc20a531",
        public string name { get; set; }//": "Mindray 五分类血液细胞分析仪 BC-5000Vet",
        public string displayName { get; set; }//": "迈瑞五分类",
        public string model { get; set; }//": "BC-5000Vet",
        public string brand { get; set; }//": "迈瑞(Mindray)",
        public string code { get; set; }//": "Mindray_BC_5000Vet",
        public string remarks { get; set; }//": "Mindray 五分类血液细胞分析仪 BC-5000Vet",
        public string url { get; set; }//": "https://www.mindray.com/en/product/BC-5000Vet.html",
        public string imagePath { get; set; }//": "bc_5100.png",
        public string classInfo { get; set; }//": "Devices.Mindray.BC_5000Vet"
    }

    public class RpResultData
    {
        public string name { get; set; }//": "白细胞数目",
        public string code { get; set; }//": "WBC",
        public string englishName { get; set; }//": "WBC",
        public string display { get; set; }//": "白细胞数目(WBC)",
        public string min { get; set; }//": "5.50 string",
        public string max { get; set; }//": "19.50 string",
        public string unit { get; set; }//": "10*9/L string",
        public string value { get; set; }//": "13.96 string"

    }

    public class RPLaboratoryRecord
    {
        public long id { get; set; }//": "化验记录id long",
        public string inspectionResultTime { get; set; }//": "检验时间 string  yyyy-MM-dd HH:mm:ss",
        public string operatorId { get; set; }//": "检验人id long",

        public long version { get; set; }//": "化验记录version int"

        public string resultAnalysis { get; set; }//": "结果分析string",
    }
}
